﻿
using Bootstrap5.Abstractions;

using Microsoft.AspNetCore.Components;

namespace Bootstrap5;

[CssClass("list-group-item")]
public class ListGroupItem:BootstrapChildContentWithChildCascadingComponentBase<ListGroupItem,ListGroup>
{
    [Parameter][CssClass("active")] public bool Active { get; set; }
    [Parameter] [CssClass("disabled")] public bool Disabled { get; set; }
    [Parameter] [CssClass("list-group-item-action")] public bool Action { get; set; }
    [Parameter] [CssClass("list-group-item-")] public Color? Color { get; set; }

    [Parameter] public ListGroupItemElement ElementType { get; set; } = ListGroupItemElement.Default;

    protected override string GetHtmlTagName()
    => ElementType.GetEnumDefaultValue().ToString();
}
